graph TD
    A[输入图像] --> B[图像预处理]
    B --> C[图像编码]
    C --> D[稀疏结构采样]
    D --> E[结构化潜在采样]
    E --> F[解码生成]
    F --> G[后处理输出]
    
    subgraph "图像预处理阶段"
        B --> B1[检查Alpha通道]
        B1 --> B2{是否有Alpha通道?}
        B2 -->|是| B3[直接使用RGBA]
        B2 -->|否| B4[背景去除]
        B4 --> B5[调整尺寸到518x518]
        B3 --> B6[裁剪和居中]
        B5 --> B6
        B6 --> B7[归一化处理]
    end
    
    subgraph "图像编码阶段"
        C --> C1[DINOv2特征提取]
        C1 --> C2[Layer Normalization]
        C2 --> C3[Patch Tokens生成]
    end
    
    subgraph "稀疏结构采样阶段"
        D --> D1[生成噪声]
        D1 --> D2[Flow模型推理]
        D2 --> D3[解码器生成坐标]
        D3 --> D4[提取有效坐标]
    end
    
    subgraph "结构化潜在采样阶段"
        E --> E1[在坐标上生成噪声]
        E1 --> E2[Flow模型推理]
        E2 --> E3[归一化处理]
    end
    
    subgraph "解码生成阶段"
        F --> F1[Gaussian解码器]
        F --> F2[Mesh解码器]
        F --> F3[Radiance Field解码器]
        F1 --> F4[生成Gaussian表示]
        F2 --> F5[生成Mesh表示]
        F3 --> F6[生成Radiance Field]
    end
    
    subgraph "后处理输出阶段"
        G --> G1[视频渲染]
        G --> G2[GLB导出]
        G --> G3[模型信息提取]
        G1 --> G4[生成预览视频]
        G2 --> G5[生成GLB文件]
        G3 --> G6[提取模型尺寸信息]
    end